//i18nService 用于在js中国际化
/**
 * [description]
 * @author lu.hong 2016-09-08
 * @param  {Object} $translate) {               var i18nService [description]
 * @return {[type]}             [description]
 */
angular.module('app').factory('i18nService', ['$translate', function($translate) {
    var i18nService = {
        i18n:function(key) {
            if(key){
                return $translate.instant(key);
            }
            return key;
        }
    }
    return i18nService;
}]);